package com.example.carproviderdriver.mapper.lwj;

import com.example.carinterface.pojo.BusinessOrder;
import com.example.carinterface.pojo.Driver;
import com.example.carinterface.pojo.DriverComment;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: zdk
 * Date: 2020/09/29 21:50
 * Description:
 * Version: V1.0
 */
public interface RevisePwdMapper {

    //通过身份证更改密码
    int revisePwd(Driver driver);
    //查询是否复核条件更改密码
    int checkqt(@Param("tel") String tel ,@Param("password") String password);
    //查询个人评价
    List<DriverComment> queryComment(@Param("id") Integer id );
    //查询工资
    List<BusinessOrder> querySal(int driver_id);
    //查询所有订单
    List<Map> queryOrder(int driver_id);
    //查询订单详情
    Map<String,Object> queryData(Integer id);
    //接收订单 更改订单状态
    Boolean receivingOder(int businessOrder_id);
    //完成订单 更改订单状态
    Boolean receivingOdera(int businessOrder_id);
    // 去往修车点订单 更改订单状态
    Boolean receivingOderb(int businessOrder_id);
    //到达修理厂订单 更改订单状态
    Boolean receivingOderc(int businessOrder_id);
    //去往检车厂 订单 更改订单状态
    Boolean receivingOderd(int businessOrder_id);
    //到达检测场 订单 更改订单状态
    Boolean receivingOdere(int businessOrder_id);
    // 维修中订单 更改订单状态
    Boolean receivingOderf(int businessOrder_id);
    //维修完成 订单 更改订单状态
    Boolean receivingOderg(int businessOrder_id);
    //通过订单号查询地图位置
    Boolean mapLode(int id);
    //查询所有完成的订单
    Boolean sucOder(int id);


    Integer insertState(Map<String, Integer> map);
}
